﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TransportHierarchyWithForms
{
    public class Route
    {
        protected string begin="";
        protected string end="";
        protected double length = 0;
        protected double cost = 0;
        

        public string Begin
        {
            get
            {
                return begin;
            }
            set
            {
                begin = value;
            }
        }

        

        public string End
        {
            get
            {
                return end;
            }
            set
            {
                end=value;
            }
        }

        public double Length
        {
            get
            {
                return length;
            }
            set
            { 
                length = value;
            }
        }

        public double Cost
        {
            get
            {
                return cost;
            }
            set
            {
                cost = value;
            }
        }

        public Route()
        {
            begin="";
            end="";
            length = 0;
            cost = 0;
        }
    }
}
